package org.dromara.fms.domain.bo;

import org.dromara.fms.domain.FmsAccount;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 账户信息业务对象 fms_account
 *
 * @author wenrui Su
 * @date 2024-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = FmsAccount.class, reverseConvertGenerate = false)
public class FmsAccountBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 编号
     */
    @NotBlank(message = "编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accountNo;

    /**
     * 当前余额
     */
    private Double balance;

    /**
     * 启用
     */
    @NotBlank(message = "启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    private Long sort;

    /**
     * 账户归属
     */
    @NotNull(message = "账户归属不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long partnerId;

    /**
     * 备注
     */
    private String remark;


}
